/*
 * @Author: your name
 * @Date: 2019-08-08 20:43:58
 * @LastEditTime: 2021-01-16 22:27:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \egg-RESTfulAPI\app\router.js
 */
'use strict'
/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app
  // router.get('/', controller.home.index)

  // role
  // router.post('/api/role', controller.role.create)
  // router.delete('/api/role/:id', controller.role.destroy)
  // router.put('/api/role/:id', controller.role.update)
  // // router.get('/api/role/:id', controller.role.show)
  // // router.get('/api/role', controller.role.index)
  // router.delete('/api/role', controller.role.removes)
  // router.resources('role', '/api/role', controller.role)



  // router.post('/getScene', controller.simulationSetting.getScene)
  // router.post('/saveScene_step1', controller.simulationSetting.saveScene_step1)
  // router.post('/saveScene_step2', controller.simulationSetting.saveScene_step2)
  // router.get('/getAllScene', controller.simulationSetting.getAllScene)
  // router.post('/deleteScene', controller.simulationSetting.deleteScene)

  // router.post('/getSceneRoad', controller.simulationSetting.getSceneRoad)


  // router.post('/sceneEtcStationModifyProperty', controller.simulationSetting.sceneEtcStationModifyProperty)

  // router.post('/sceneAddEtcStation', controller.simulationSetting.sceneAddEtcStation)

  // router.post('/deleteSceneEtcStation', controller.simulationSetting.deleteSceneEtcStation)
  // router.get('/getSceneEtcStation', controller.simulationSetting.getSceneEtcStation)




  // // router.post('/getSceneDetail', controller.simulationSetting.getSceneDetail)

  // // router.post('/sceneBasePoint', controller.simulationSetting.sceneBasePoint)
  // // router.post('/sceneEtcStation', controller.simulationSetting.sceneEtcStation)

  // // router.post('/addSceneEtcStation', controller.simulationSetting.addSceneEtcStation)

  // // router.post('/removeSceneEtcStation', controller.simulationSetting.removeSceneEtcStation)

  // // router.post('/modifySceneEtcStation', controller.simulationSetting.modifySceneEtcStation)

  // // router.post('role', '/query_stations_info', controller.pile.query_stations_info)

  // router.get('/getEtcDoor', controller.etc.getEtcDoor)
  // router.get('/getLL', controller.etc.getLL)
  // router.get('/test', controller.etc.test)
  // router.post('/getVehicleByTime', controller.etc.getVehicleByTime)
  // // router.post('/getTrajectory', controller.etc.getTrajectory)

  // router.get('/getRoadBase', controller.virtualEtc.getRoadBase)
  // router.post('/getRoadRealTime', controller.virtualEtc.getRoadRealTime)

  // router.post('/getRoadRealTimeById', controller.virtualEtc.getRoadRealTimeById)


  // router.post('/getEtcStationRealTime', controller.virtualEtc.getEtcStationRealTime)

  // router.post('/getEtcStationRealTimeById', controller.virtualEtc.getEtcStationRealTimeById)



  // router.post('/getCarRealTime', controller.virtualEtc.getCarRealTime)
  // router.post('/getCarRealTimeById', controller.virtualEtc.getCarRealTimeById)



  // router.post('/getSummaryRealTime', controller.virtualEtc.getSummaryRealTime)

  // router.post('/getMainRoadRealTime', controller.virtualEtc.getMainRoadRealTime)


  // // userAccess
  // router.post('/api/user/access/login', controller.userAccess.login)
  // router.get('/api/user/access/current', app.jwt, controller.userAccess.current)
  // router.get('/api/user/access/logout', controller.userAccess.logout)
  // router.put('/api/user/access/resetPsw', app.jwt, controller.userAccess.resetPsw)


  // router.post('/api/interesection', controller.interesection.index)
  // router.post('/api/interesection/compare', controller.interesection.compare)
  // router.get('/api/interesection/getSegment', controller.interesection.getSegment)
  // router.post('/api/interesection/getGuiji', controller.interesection.getGuiji)
  // router.post('/api/interesection/road_new', controller.interesection.road_new)
  // router.post('/api/interesection/getSegmentByFw', controller.interesection.getSegmentByFw)


  // // user
  // // router.post('/api/user', controller.user.create)
  // // router.delete('/api/user/:id', controller.user.destroy)
  // // router.put('/api/user/:id', controller.user.update)
  // // router.get('/api/user/:id', controller.user.show)
  // // router.get('/api/user', controller.user.index)
  // router.delete('/api/user', controller.user.removes)
  // router.resources('user', '/api/user', controller.user)

  // // upload
  // router.post('/api/upload', controller.upload.create)
  // router.post('/api/upload/url', controller.upload.url)
  // router.post('/api/uploads', controller.upload.multiple)
  // router.delete('/api/upload/:id', controller.upload.destroy)
  // // router.put('/api/upload/:id', controller.upload.update)
  // router.post('/api/upload/:id', controller.upload.update) // Ant Design Pro
  // router.put('/api/upload/:id/extra', controller.upload.extra)
  // router.get('/api/upload/:id', controller.upload.show)
  // router.get('/api/upload', controller.upload.index)
  // router.delete('/api/upload', controller.upload.removes)
  // router.resources('upload', '/api/upload', controller.upload)
  router.post('/maps/add', controller.upload.multiple)
  router.post('/maps/list', controller.maps.list)
  router.post('/maps/update', controller.maps.update)
  router.post('/maps/remove', controller.maps.remove)
  router.post('/maps/detail', controller.maps.detail)


  router.post('/plans/add', controller.plans.add)
  router.post('/plans/list', controller.plans.list)
  router.post('/plans/update', controller.plans.update)
  router.post('/plans/remove', controller.plans.remove)
  router.post('/plans/detail', controller.plans.detail)

  router.post('/plans/getRoads', controller.etcStation.getRoads)
  router.post('/plans/getNodes', controller.etcStation.getNodes)
  router.post('/plans/getEtcStations', controller.etcStation.getEtcStations)
  router.post('/plans/addEtcStation', controller.etcStation.addEtcStation)
  router.post('/plans/updateEtcStation', controller.etcStation.updateEtcStation)
  router.post('/plans/removeEtcStation', controller.etcStation.removeEtcStation)
  router.post('/plans/getEtcStation', controller.etcStation.getEtcStation)


  router.post('/scenes/add', controller.scenes.add)
  router.post('/scenes/list', controller.scenes.list)
  router.post('/scenes/update', controller.scenes.update)
  router.post('/scenes/remove', controller.scenes.remove)
  router.post('/scenes/detail', controller.scenes.detail)



  router.post('/scenes/getEtcStations', controller.sceneEtcStation.getEtcStations)
  router.post('/scenes/addEtcStation', controller.sceneEtcStation.addEtcStation)
  router.post('/scenes/updateEtcStation', controller.sceneEtcStation.updateEtcStation)
  router.post('/scenes/removeEtcStation', controller.sceneEtcStation.removeEtcStation)
  router.post('/scenes/getEtcStation', controller.sceneEtcStation.getEtcStation)


}
